package com.itheima.demo01lambda;

/**
 * @author chenming
 * Date  2023/6/6 15:10
 * @version 1.0
 * description
 */
public class Demo01LambdaIntro {
    public static void main(String[] args) {
        new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("开启线程");
            }
        }).start();


        //简略版本Lambda表达式
        new Thread(()-> System.out.println("Lambda启动线程")).start();

    }
}
